home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / language / ici / ici.cpi / Makefile.sun < prev    next >
Makefile  |  1994-10-27  |  4KB  |  99 lines

  1. #
  2. # For compiling a standard version on a Sun using gcc.
  3. #
  4. FLAVOUR    = sun
  5.  
  6. TARGET    = ici.$(FLAVOUR)
  7. LIB    = lib$(FLAVOUR).a
  8. CONFIG    = conf-$(FLAVOUR).h
  9.  
  10. CC    = gcc -pipe
  11. LIBS    = -lm -ltermcap
  12. CFLAGS    = -g -O2 -DCONFIG_FILE='"$(CONFIG)"'
  13. LDFLAGS    =
  14. RANLIB    = ranlib
  15. RM    = rm -f
  16.  
  17. #
  18. # The remainder of this makefile is pretty well generic...
  19. #
  20.  
  21. OBJS    = \
  22.     $(LIB)(alloc.o) $(LIB)(arith.o) $(LIB)(array.o) $(LIB)(call.o) \
  23.     $(LIB)(catch.o) $(LIB)(cfunc.o) $(LIB)(clib.o) $(LIB)(clib2.o) \
  24.     $(LIB)(compile.o) $(LIB)(conf.o) $(LIB)(control.o) $(LIB)(exec.o) \
  25.     $(LIB)(exerror.o) $(LIB)(file.o) $(LIB)(float.o) $(LIB)(forall.o) \
  26.     $(LIB)(func.o) $(LIB)(icimain.o) $(LIB)(init.o) $(LIB)(int.o) \
  27.     $(LIB)(lex.o) $(LIB)(main.o) $(LIB)(mark.o) $(LIB)(mem.o) \
  28.     $(LIB)(mkstruct.o) $(LIB)(mkvar.o) $(LIB)(nptrs.o) $(LIB)(null.o) \
  29.     $(LIB)(object.o) $(LIB)(op.o) $(LIB)(parse.o) $(LIB)(pc.o) \
  30.     $(LIB)(ptr.o) $(LIB)(regexp.o) $(LIB)(set.o) $(LIB)(sfile.o) \
  31.     $(LIB)(skt.o) $(LIB)(smash.o) $(LIB)(src.o) $(LIB)(string.o) \
  32.     $(LIB)(struct.o) $(LIB)(syscall.o) $(LIB)(syserr.o) $(LIB)(ti.o) \
  33.     $(LIB)(trace.o) $(LIB)(unary.o) $(LIB)(win.o) \
  34.     $(LIB)(wrap.o)
  35.  
  36. .PRECIOUS: $(LIB)
  37.  
  38. $(TARGET): $(LIB)
  39.     $(CC) $(LDFLAGS) -o $@ $(LIB) $(LIBS)
  40.  
  41. .c.a    :;
  42.  
  43. $(LIB)    : $(OBJS)
  44.     $(CC) -c $(CFLAGS) $(?:.o=.c)
  45.     $(AR) r $@ $?
  46.     $(RANLIB) $@
  47.     $(RM) $?
  48.  
  49. #
  50. # No mention of fwd.h or alloc.h, but everything depends on it.
  51. #
  52. $(LIB)(alloc.o)        : trace.h
  53. $(LIB)(arith.o)        : exec.h float.h int.h op.h parse.h ptr.h str.h struct.h buf.h binop.h
  54. $(LIB)(array.o)        : ptr.h exec.h op.h int.h buf.h
  55. $(LIB)(call.o)         : buf.h exec.h func.h int.h float.h str.h null.h op.h
  56. $(LIB)(catch.o)        : exec.h catch.h op.h func.h
  57. $(LIB)(cfunc.o)        : exec.h func.h str.h int.h float.h struct.h set.h op.h ptr.h buf.h file.h re.h null.h parse.h mem.h
  58. $(LIB)(clib.o)         : file.h func.h op.h int.h float.h str.h buf.h exec.h
  59. $(LIB)(clib2.o)        : buf.h func.h
  60. $(LIB)(compile.o)      : parse.h array.h op.h str.h
  61. $(LIB)(conf.o)         : func.h
  62. $(LIB)(control.o)      : exec.h op.h int.h buf.h pc.h struct.h null.h forall.h catch.h
  63. $(LIB)(exec.o)         : exec.h op.h catch.h ptr.h func.h str.h buf.h pc.h int.h struct.h set.h parse.h float.h re.h src.h null.h forall.h trace.h binop.h
  64. $(LIB)(exerror.o)      : str.h buf.h
  65. $(LIB)(file.o)         : file.h
  66. $(LIB)(float.o)        : float.h
  67. $(LIB)(forall.o)       : exec.h struct.h set.h forall.h str.h buf.h
  68. $(LIB)(func.o)         : func.h exec.h ptr.h struct.h op.h pc.h str.h catch.h buf.h mark.h null.h
  69. $(LIB)(icimain.o)      : ptr.h exec.h file.h str.h struct.h buf.h wrap.h func.h
  70. $(LIB)(init.o)         : func.h buf.h struct.h multi.h
  71. $(LIB)(int.o)          : int.h
  72. $(LIB)(lex.o)          : parse.h file.h buf.h src.h array.h trace.h
  73. $(LIB)(mark.o)         : mark.h
  74. $(LIB)(mem.o)          : mem.h int.h buf.h
  75. $(LIB)(mkstruct.o)     : object.h
  76. $(LIB)(mkvar.o)        : exec.h struct.h
  77. $(LIB)(nptrs.o)        :
  78. $(LIB)(null.o)         : null.h
  79. $(LIB)(object.o)       : exec.h buf.h int.h str.h float.h func.h multi.h
  80. $(LIB)(op.o)           : op.h exec.h
  81. $(LIB)(parse.o)        : parse.h func.h str.h struct.h buf.h file.h op.h exec.h
  82. $(LIB)(pc.o)           : exec.h pc.h
  83. $(LIB)(ptr.o)          : exec.h ptr.h struct.h int.h op.h buf.h
  84. $(LIB)(regexp.o)       : str.h re.h exec.h op.h buf.h
  85. $(LIB)(set.o)          : object.h set.h op.h int.h buf.h null.h
  86. $(LIB)(sfile.o)        : file.h
  87. $(LIB)(skt.o)          : buf.h exec.h op.h fwd.h func.h int.h set.h struct.h str.h skt.h
  88. $(LIB)(smash.o)        :
  89. $(LIB)(src.o)          : exec.h src.h
  90. $(LIB)(string.o)       : str.h struct.h exec.h int.h
  91. $(LIB)(struct.o)       : struct.h ptr.h exec.h func.h op.h int.h buf.h str.h pc.h
  92. $(LIB)(syscall.o)      : func.h op.h exec.h
  93. $(LIB)(syserr.o)       :
  94. $(LIB)(ti.o)           : acs.h exec.h func.h int.h wrap.h buf.h
  95. $(LIB)(trace.o)        : func.h object.h trace.h file.h set.h struct.h array.h re.h str.h int.h float.h exec.h op.h
  96. $(LIB)(unary.o)        : exec.h float.h int.h op.h parse.h buf.h null.h
  97. $(LIB)(win.o)          : exec.h op.h str.h win.h acs.h buf.h func.h int.h wrap.h
  98. $(LIB)(wrap.o)         : wrap.h
  99.